/*
 ============================================================================
 Name        : GPIO_Main.c
 Author      : Stefan Nagel
 Version     : 0.0.1
 Copyright   : 2013 Stefan Nagel
 	 	 	 	This file is part of zeitmessanlage.
				zeitmessanlage is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
				zeitmessanlage is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
				You should have received a copy of the GNU General Public License along with zeitmessanlage. If not, see http://www.gnu.org/licenses/.
  Description : This is the header for configuring the GNUBLIN GPIOs
 ============================================================================
 */

#ifndef GPIO_MAIN_H_
#define GPIO_MAIN_H_


typedef enum GPIOEdge
{
	None,
	Falling,
	Rising,
	Both
}GPIOEdgeType;

typedef enum GPIODirection
{
	Input,
	Output
}GPIODirectionType;


extern int GPIO_Init(int, GPIODirectionType, GPIOEdgeType);
extern int GPIO_SetEdge(int, GPIOEdgeType);
extern int GPIO_SetDirection(int ,GPIODirectionType);
extern int GPIO_Clean(int);



#endif /* GPIO_MAIN_H_ */
